package com.idc.resource.dal.mapper;

import com.idc.resource.dal.dto.TMenuInfo;

import java.util.List;

public interface TMenuInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TMenuInfo record);

    int insertSelective(TMenuInfo record);

    TMenuInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TMenuInfo record);

    int updateByPrimaryKey(TMenuInfo record);

    /**
     * 根据用户id查询该用户的权限菜单
     * @return 权限菜单集合
     */
    List<TMenuInfo> selectByUserId(Long userId);

    /**
     * 查询所有菜单信息
     * @return 菜单信息
     */
    List<TMenuInfo> selectAll();
}